/**
 * 
 */
package com.googlecode.pcapj;

import java.net.InetAddress;

/**
 * This interface represents an IP address of a socket.
 */
public interface SocketAddress {
	/**
	 * Gets the socket family of the socket.
	 * @return socket  the socket family value is defined in a {@link SocketFamily} class
	 * @see SocketFamily
	 */
	public int getSocketFamily();
	/**
	 * Gets the socket address is native format structure.
	 * @return the socket address is native format.
	 */
	public byte[] getSocketAddress();
	/**
	 * Gets the InetAddress object.
	 * @return the InetAddress object, or null if socket family is unknown.
	 */
	public InetAddress getInetAddress();
}
